[SPARK-23914][SQL][follow-up] refactor ArrayUnion#21937
Closed
kiszk wants to merge 4 commits intoapache:masterfrom
Closed
[SPARK-23914][SQL][follow-up] refactor ArrayUnion#21937kiszk wants to merge 4 commits intoapache:masterfrom
kiszk wants to merge 4 commits intoapache:masterfrom
Conversation
|
Test build #93840 has finished for PR 21937 at commit
|
738a4a0 to
f48dde0
Compare
|
Test build #94208 has finished for PR 21937 at commit
|
ueshin
reviewed
Aug 6, 2018
Member
There was a problem hiding this comment.
nit: new $arrayBuilderClass() should work?
Member
There was a problem hiding this comment.
nit: classOf[mutable.ArrayBuilder[_]].getName?
Member
|
I'll revisit after the conflict is fixed. |
Member
Author
|
I see. Now, I am rebasing and resolving conflicts. |
f48dde0 to
93ec9ec
Compare
ueshin
reviewed
Aug 6, 2018
| val classTag = s"scala.reflect.ClassTag$$.MODULE$$.$hsTypeName()" | ||
| val hashSet = ctx.freshName("hashSet") | ||
| val arrayBuilder = classOf[mutable.ArrayBuilder[_]].getName | ||
| val arrayBuilderClass = s"$arrayBuilder$$of$ptName" |
Member
Author
There was a problem hiding this comment.
I think that we still need this to create an intermediate result array. The array is allocated at L3907 as other functions do.
|
Test build #94290 has finished for PR 21937 at commit
|
|
Test build #94304 has finished for PR 21937 at commit
|
Member
|
LGTM. |
Member
|
Thanks! merging to master. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR refactors
ArrayUnionbased on this suggestion.booleanArrayBuilderorArrayBufferHow was this patch tested?
Existing tests